#!/usr/bin/env python
#-*- coding: utf-8 -*-
#
# BSD License
# Copyright (c) 2011, Wang Qiang
# All rights reserved.
"""
Errors
"""

class BasicError(Exception):
    """Basic exception"""
    def __init__(self, reason):
        self.errorType = "Basic"
        self.reason = reason

    def __str__(self):
        return self.reason


class FormatFileError(BasicError):
    """FormatFile exception"""
    def __init__(self, reason):
        self.errorType = "FormatFile"
        self.reason = reason
